<?php
$this->breadcrumbs=array(
	'Tests'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('List test', array('index')),
	array('Create test', array('create'),'visible'=>Yii::app()->user->hasAuth(Group::TEACHER)),
	array('Update test', array('update', 'id'=>$model->id),'visible'=>Yii::app()->user->hasAuth(Group::TEACHER)),
	array('Manage test', array('admin'),'visible'=>Yii::app()->user->hasAuth(Group::MODERATOR)),
);
?>

<h1>View test #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'test1',
		'test2',
		'test4',
	),
)); ?>
